![]() |
MPExitCriticalRegion |
||||
Header: | Multiprocessing.h | Carbon status: | Supported | |
Exits a critical region.
OSStatus MPExitCriticalRegion ( MPCriticalRegionID criticalRegion );
The ID of the critical region you want to exit.
A result code. If the task does not own the critical region specified by criticalRegion, MPExitCriticalRegion returns kMPInsufficientResourcesErr.
This function decrements the use count of the critical region object. When the use count reaches zero, ownership of the critical region object is released (which allows another task to use the critical region).
Also see the function MPEnterCriticalRegion.
Introduced with Multiprocessing Services 1.0.
Supported in Carbon. Available in CarbonLib 1.0 and later when MPLibrary 1.0 or later is installed. Exported by CarbonLib 1.0 and later and by MPLibrary 1.0 and later.
© 2000 Apple Computer, Inc. — (Last Updated 4/6/2000)